/*
 * $Id: TcpGate.h,v 1.2 2005-07-23 11:36:36 bacon Exp $
 */

#ifndef _TCPGATE_CLASS_
#define _TCPGATE_CLASS_

#include "Gate.h"
#include <xpp/net/TcpServer.h>

using namespace xpp;
using namespace xpp::net;

class TcpGate: public Gate, public TcpServer
{
public:
	TcpGate (const xp_char_t* name);

	int main ();
	int stop ();

protected:
	int handle_client (TcpSocket* sock, TcpAddress* addr);
};

#endif
